package com.vsd.repository;


import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;

import com.shopcart.domain.CreditCategory;


@RestResource(exported = false)
public interface CreditCategoryRepository extends CrudRepository<CreditCategory, String> {

	
	Collection<CreditCategory>  findAllByOrderBySortDesc();
	
	Page<CreditCategory> findAll(Pageable p);
	
	Collection<CreditCategory> findByCode(String code);
	
}
